<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<title>消息详情</title>
<link href="/oa/css/message.css" type="text/css" rel="stylesheet" />
<link href="/oa/css/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
	function update()
	{
		var myId = getParam('id');
		if(myId != null)
			window.location.href ='<s:url action="showMessageToUser" namespace="/messageManage" />'+'?showId=' + myId;
	}
	
	var getParam = function(name){
        var search = document.location.search;
        var pattern = new RegExp("[?&]"+name+"\=([^&]+)", "g");
        var matcher = pattern.exec(search);
        var items = null;
        if(null != matcher){
                try{
                        items = decodeURIComponent(decodeURIComponent(matcher[1]));
                }catch(e){
                        try{
                                items = decodeURIComponent(matcher[1]);
                        }catch(e){
                                items = matcher[1];
                        }
                }
        }
        return items;
};
</script>
</head>
<body onload="update()">
	<table class="data_list_table" style="width:500; height: 400">
		<tr>
			<th>消息主题</th>
			<td>${messageToUserBean.message.title }</td>
		</tr>
		<tr>
			<th>重要程度</th>
			<td>${messageToUserBean.message.messageType.title }消息</td>
		</tr>
		<tr>
			<th>消息内容</th>
			<td><textarea rows="5" cols="50" readonly="readonly">${messageToUserBean.message.content }</textarea>
			</td>
		</tr>
		<tr>
			<th>发件人</th>
			<td>${messageToUserBean.fromUser.userName }</td>
		</tr>
		<tr>
			<th>发送时间</th>
			<td><s:date name="messageToUserBean.message.recordTime " format="yyyy年MM月dd日" /></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="button" class="common_button" value="关 闭"
				onclick="javascript:self.close();" />
			</td>
		</tr>
	</table>
</body>
</html>
